package com.supermap.dataservice.util;

import java.io.Serializable;

/**
 * @author aqua
 * @desc
 * @date 2019年04月08 17:05
 * @email 1301584033@qq.com
 */
public class JSONUtils implements Serializable {
    //是否成功
    private boolean isSuccess = true;

    //提示信息
    private String msg = "操作成功";

    //返回的数据
    private Object data = null;
    //总条数
    private int countSum=0;
    //失败：100
    //成功：200
    private Integer code = 200;


    public int getCountSum() {
        return countSum;
    }

    public JSONUtils setCountSum(int countSum) {
        this.countSum = countSum;
        return  this;
    }

    public String getMsg() {
        return msg;
    }

    public JSONUtils setMsg(String msg) {
        this.msg = msg;
        return  this;
    }

    public Object getData() {
        return data;
    }

    public JSONUtils setData(Object data) {
        this.data = data;
        return  this;
    }

    public boolean getIsSuccess() {
        return isSuccess;
    }

    public JSONUtils setIsSuccess(boolean isSuccess) {
        this.isSuccess = isSuccess;
        return  this;
    }

    public Integer getCode() {
        return code;
    }

    public JSONUtils setCode(Integer code) {
        this.code = code;
        return  this;
    }

}
